package com.acme.task2;

public class Foo {

	@Override
	protected void finalize() throws Throwable {
		super.finalize();
		System.out.println("finalize() was called");
	}
}